package chw.bootserver;

import chw.dubbo.User;
import chw.dubbo.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Method;

@DubboService(timeout = 4000,methods = {@Method(name = "getUser",timeout = 100)})
public class UserServiceImpl implements UserService {
    @Override
    public User getUser(Integer id) {
        User user = new User();
        user.setId(id);
        return user;
    }
}
